package com.ums.web.action;


public class LoginAction extends BaseAction {

	private static final long serialVersionUID = 1L;
	private String username;
	private String password;
	
	public String initLogin() {
		return SUCCESS;
	}
	
	public String login() throws Exception {
		System.out.println("Forwarding from LoginAction");
		
		if(!username.equals(password))
			return "login";
		
		return SUCCESS;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the serialVersionUID
	 */
	public static long getSerialVersionUID() {
		return serialVersionUID;
	}
	
	
}
